<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCMessageChannel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCMessageChannel Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html">消息通道模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Inherited by com.juphoon.cloud.JCMessageChannelImpl.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:addc344bf41b91ef103cf8ffdc01c89e9"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#addc344bf41b91ef103cf8ffdc01c89e9">sendMessage</a> (@Type int type, @NonNull String keyId, @NonNull String messageType, @NonNull String text, @Nullable Map&lt; String, Object &gt; extraParams, long cookie, boolean atAll, @Nullable List&lt; String &gt; atUidList)</td></tr>
<tr class="separator:addc344bf41b91ef103cf8ffdc01c89e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94073d187a06ba6e43cb8cd555910200"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a94073d187a06ba6e43cb8cd555910200">sendFile</a> (@Type int type, @NonNull String keyId, @NonNull String messageType, @NonNull String fileUri, @NonNull String thumbUri, int size, int duration, @Nullable Map&lt; String, Object &gt; extraParams, long cookie, boolean atAll, @Nullable List&lt; String &gt; atUidList)</td></tr>
<tr class="separator:a94073d187a06ba6e43cb8cd555910200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e71982c2f78c26dd7d325c1ed4b2b91"><td class="memItemLeft" align="right" valign="top">abstract int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a7e71982c2f78c26dd7d325c1ed4b2b91">refreshConversation</a> (@Nullable String serverUid, long lastQueryTime)</td></tr>
<tr class="separator:a7e71982c2f78c26dd7d325c1ed4b2b91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95063c25f0475eb83a2b6120503433c4"><td class="memItemLeft" align="right" valign="top">abstract int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a95063c25f0475eb83a2b6120503433c4">fetchMessages</a> (@NonNull String serverUid, long startMessageId, int count, boolean pack)</td></tr>
<tr class="separator:a95063c25f0475eb83a2b6120503433c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f99135dc8e3eff377592b3e2a62363e"><td class="memItemLeft" align="right" valign="top">abstract int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a3f99135dc8e3eff377592b3e2a62363e">markReadMessage</a> (@NonNull String serverUid, long messageId)</td></tr>
<tr class="separator:a3f99135dc8e3eff377592b3e2a62363e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7a18b4c079acc2215ba88f2c9cdfa6d"><td class="memItemLeft" align="right" valign="top">abstract int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#af7a18b4c079acc2215ba88f2c9cdfa6d">markRecvMessage</a> (@NonNull String serverUid, long messageId)</td></tr>
<tr class="separator:af7a18b4c079acc2215ba88f2c9cdfa6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25e64a7e88b0e8eba3c87c4facce9ebd"><td class="memItemLeft" align="right" valign="top">abstract int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a25e64a7e88b0e8eba3c87c4facce9ebd">drawBackMessage</a> (@NonNull String serverUid, long messageId, String text)</td></tr>
<tr class="separator:a25e64a7e88b0e8eba3c87c4facce9ebd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a07b70225a7045974619c6d2b6bc497c7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a07b70225a7045974619c6d2b6bc497c7">create</a> (@NonNull <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html">JCClient</a> client, @NonNull <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html">JCMessageChannelCallback</a> callback)</td></tr>
<tr class="separator:a07b70225a7045974619c6d2b6bc497c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7df1906e4dc03c4ce9946ac1e903edeb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a7df1906e4dc03c4ce9946ac1e903edeb">destroy</a> ()</td></tr>
<tr class="separator:a7df1906e4dc03c4ce9946ac1e903edeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:adb23597d6d83cbee9e96d0f7796b7864"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#adb23597d6d83cbee9e96d0f7796b7864">thumbDir</a></td></tr>
<tr class="separator:adb23597d6d83cbee9e96d0f7796b7864"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ae25d6902e3670fbd60ccc61ee887439e"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#ae25d6902e3670fbd60ccc61ee887439e">TYPE_1TO1</a> = 0</td></tr>
<tr class="separator:ae25d6902e3670fbd60ccc61ee887439e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9aabb6c676cd2180ceb45353fbd1fdcb"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a9aabb6c676cd2180ceb45353fbd1fdcb">TYPE_GROUP</a> = 1</td></tr>
<tr class="separator:a9aabb6c676cd2180ceb45353fbd1fdcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacff979871f2ef29f483b5c7476873a43"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#gacff979871f2ef29f483b5c7476873a43">REASON_NONE</a> = 0</td></tr>
<tr class="separator:gacff979871f2ef29f483b5c7476873a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad26f53e497b16b98008a680cdd971f4d"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#gad26f53e497b16b98008a680cdd971f4d">REASON_NOT_LOGIN</a> = 1</td></tr>
<tr class="separator:gad26f53e497b16b98008a680cdd971f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga90aeae058fcccced441807dbd073ebd6"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#ga90aeae058fcccced441807dbd073ebd6">REASON_NETWORK</a> = 2</td></tr>
<tr class="separator:ga90aeae058fcccced441807dbd073ebd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78ff57fca591561c9ff0545db4421f82"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#ga78ff57fca591561c9ff0545db4421f82">REASON_TOO_LONG</a> =10</td></tr>
<tr class="separator:ga78ff57fca591561c9ff0545db4421f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga69ff974ac34410553957303cafef1a2e"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#ga69ff974ac34410553957303cafef1a2e">REASON_OTHER</a> = 100</td></tr>
<tr class="separator:ga69ff974ac34410553957303cafef1a2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b0ae0c5836d1b460761c46932b07e3b"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a4b0ae0c5836d1b460761c46932b07e3b">ITEM_STATE_INIT</a> = 0</td></tr>
<tr class="separator:a4b0ae0c5836d1b460761c46932b07e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9b612713aa1c39a4a4c5c3e70ebbcfd"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#aa9b612713aa1c39a4a4c5c3e70ebbcfd">ITEM_STATE_TRANSFERING</a> = 1</td></tr>
<tr class="separator:aa9b612713aa1c39a4a4c5c3e70ebbcfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34a763a491fbe5cce659d449e40c5aa2"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a34a763a491fbe5cce659d449e40c5aa2">ITEM_STATE_OK</a> = 2</td></tr>
<tr class="separator:a34a763a491fbe5cce659d449e40c5aa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d75429f85dd20a5ce6527245dc7b26"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a63d75429f85dd20a5ce6527245dc7b26">ITEM_STATE_FAIL</a> = 3</td></tr>
<tr class="separator:a63d75429f85dd20a5ce6527245dc7b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45bfdf3c0589ebaabe99be31703c0f0b"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a45bfdf3c0589ebaabe99be31703c0f0b">ITEM_STATE_ARRIVED</a> = 5</td></tr>
<tr class="separator:a45bfdf3c0589ebaabe99be31703c0f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae786148efddf3dc93346d5b7ac5d28d"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#aae786148efddf3dc93346d5b7ac5d28d">ITEM_STATE_READED</a> = 6</td></tr>
<tr class="separator:aae786148efddf3dc93346d5b7ac5d28d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaf6c160c11a54944408a91df9fd2fbd"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#acaf6c160c11a54944408a91df9fd2fbd">DIRECTION_SEND</a> = 0</td></tr>
<tr class="separator:acaf6c160c11a54944408a91df9fd2fbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82b6a700cee69a7ccb9b1d7ed82646e2"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a82b6a700cee69a7ccb9b1d7ed82646e2">DIRECTION_RECEIVE</a> = 1</td></tr>
<tr class="separator:a82b6a700cee69a7ccb9b1d7ed82646e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>用于管理消息 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a07b70225a7045974619c6d2b6bc497c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07b70225a7045974619c6d2b6bc497c7">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> com.juphoon.cloud.JCMessageChannel.create </td>
          <td>(</td>
          <td class="paramtype">@NonNull <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html">JCClient</a>&#160;</td>
          <td class="paramname"><em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html">JCMessageChannelCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象</p>
<p><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象后，期间没有调用过 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a7df1906e4dc03c4ce9946ac1e903edeb">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a9662a6f13921508ebefa58b0d684f6cd">getState</a> 方法获取的状态值不等于 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a9265e400dcb439ba508abd30174c380d">STATE_NOT_INIT</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html">JCMessageChannelCallback</a> 回调接口，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>返回 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象 </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">JCClient、JCMessageChannelCallback 任意参数传空就会抛出异常</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7df1906e4dc03c4ce9946ac1e903edeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7df1906e4dc03c4ce9946ac1e903edeb">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.juphoon.cloud.JCMessageChannel.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象</p>
<dl class="section note"><dt>Note</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a07b70225a7045974619c6d2b6bc497c7">create</a> 方法去重新创建 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html">JCMessageChannel</a> 对象 </dd></dl>

</div>
</div>
<a id="addc344bf41b91ef103cf8ffdc01c89e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addc344bf41b91ef103cf8ffdc01c89e9">&#9670;&nbsp;</a></span>sendMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a> com.juphoon.cloud.JCMessageChannel.sendMessage </td>
          <td>(</td>
          <td class="paramtype">@Type int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>keyId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>messageType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@Nullable Map&lt; String, Object &gt;&#160;</td>
          <td class="paramname"><em>extraParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>atAll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@Nullable List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>atUidList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>发送文本消息</p>
<dl class="section note"><dt>Note</dt><dd>文本内容不要超过10KB</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>类型:<ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#ae25d6902e3670fbd60ccc61ee887439e">TYPE_1TO1</a> : 一对一消息</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a9aabb6c676cd2180ceb45353fbd1fdcb">TYPE_GROUP</a> : 群组消息 </li>
</ul>
</td></tr>
    <tr><td class="paramname">keyId</td><td>对方唯一标识:<ul>
<li>当 type 为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#ae25d6902e3670fbd60ccc61ee887439e">TYPE_1TO1</a> 时为对方的 serverUid</li>
<li>当 type 为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a9aabb6c676cd2180ceb45353fbd1fdcb">TYPE_GROUP</a> 时为群组的 serverUid </li>
</ul>
</td></tr>
    <tr><td class="paramname">messageType</td><td>文本消息类型，用户可以自定义，例如text，xml等 </td></tr>
    <tr><td class="paramname">text</td><td>文本内容 </td></tr>
    <tr><td class="paramname">extraParams</td><td>自定义参数集 </td></tr>
    <tr><td class="paramname">cookie</td><td>标志数据 </td></tr>
    <tr><td class="paramname">atAll</td><td>是否@群体成员，针对群消息 </td></tr>
    <tr><td class="paramname">atUidList</td><td>"@"成员的serverUid列表 针对群消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>成功返回 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a> 对象，并且会收到 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#ab201e283febb23b808d72a2b86f5509d">onMessageSendUpdate</a> 通知</li>
<li>异常返回 null，不会收到通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a94073d187a06ba6e43cb8cd555910200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94073d187a06ba6e43cb8cd555910200">&#9670;&nbsp;</a></span>sendFile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a> com.juphoon.cloud.JCMessageChannel.sendFile </td>
          <td>(</td>
          <td class="paramtype">@Type int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>keyId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>messageType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>fileUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>thumbUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@Nullable Map&lt; String, Object &gt;&#160;</td>
          <td class="paramname"><em>extraParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>atAll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@Nullable List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>atUidList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>发送文件消息</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>类型：<ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#ae25d6902e3670fbd60ccc61ee887439e">TYPE_1TO1</a> : 一对一消息</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a9aabb6c676cd2180ceb45353fbd1fdcb">TYPE_GROUP</a> : 群组消息 </li>
</ul>
</td></tr>
    <tr><td class="paramname">keyId</td><td>对方唯一标识<ul>
<li>当 type 为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#ae25d6902e3670fbd60ccc61ee887439e">TYPE_1TO1</a> 时为对方的 serverUid</li>
<li>当 type 为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel.html#a9aabb6c676cd2180ceb45353fbd1fdcb">TYPE_GROUP</a> 时为群组的 serverUid </li>
</ul>
</td></tr>
    <tr><td class="paramname">messageType</td><td>文件消息类型，用户可以自定义，例如image，video等 </td></tr>
    <tr><td class="paramname">fileUri</td><td>文件链接地址 </td></tr>
    <tr><td class="paramname">thumbUri</td><td>缩略图文件链接地址 </td></tr>
    <tr><td class="paramname">size</td><td>文件大小(字节) </td></tr>
    <tr><td class="paramname">duration</td><td>文件时长，针对语音，视频等消息 </td></tr>
    <tr><td class="paramname">extraParams</td><td>自定义参数集 </td></tr>
    <tr><td class="paramname">cookie</td><td>标志数据 </td></tr>
    <tr><td class="paramname">atAll</td><td>是否@群体成员，针对群消息 </td></tr>
    <tr><td class="paramname">atUidList</td><td>"@"成员的serverUid列表 针对群消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>成功返回 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_item.html">JCMessageChannelItem</a> 对象，并且会收到 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#ab201e283febb23b808d72a2b86f5509d">onMessageSendUpdate</a> 通知</li>
<li>异常返回 null，不会收到通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7e71982c2f78c26dd7d325c1ed4b2b91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e71982c2f78c26dd7d325c1ed4b2b91">&#9670;&nbsp;</a></span>refreshConversation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract int com.juphoon.cloud.JCMessageChannel.refreshConversation </td>
          <td>(</td>
          <td class="paramtype">@Nullable String&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>lastQueryTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取消息会话</p>
<p>结果通过 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#a966528c6393760a0371e83bad62f1d4d">onRefreshConversation</a> 通知</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid, null返回全部 </td></tr>
    <tr><td class="paramname">lastQueryTime</td><td>上次查询返回的时间，单位毫秒 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a95063c25f0475eb83a2b6120503433c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95063c25f0475eb83a2b6120503433c4">&#9670;&nbsp;</a></span>fetchMessages()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract int com.juphoon.cloud.JCMessageChannel.fetchMessages </td>
          <td>(</td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>startMessageId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>pack</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取历史消息</p>
<p>结果通过 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#a2b54d679bbe65b088433b6d3f2a28dcf">onFetchMessageResult</a> 通知</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">startMessageId</td><td>起始消息ID，如果-1从最新开始拉取 </td></tr>
    <tr><td class="paramname">count</td><td>拉取历史消息条数 </td></tr>
    <tr><td class="paramname">pack</td><td>消息列表是否一次性返回 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a3f99135dc8e3eff377592b3e2a62363e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f99135dc8e3eff377592b3e2a62363e">&#9670;&nbsp;</a></span>markReadMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract int com.juphoon.cloud.JCMessageChannel.markReadMessage </td>
          <td>(</td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>messageId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>标志消息为已读</p>
<p>结果通过 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#a87e606f6196c873d215b20e17ce5b723">onMarkReadResult</a> 通知</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID，如果-1表示最后一条消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="af7a18b4c079acc2215ba88f2c9cdfa6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7a18b4c079acc2215ba88f2c9cdfa6d">&#9670;&nbsp;</a></span>markRecvMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract int com.juphoon.cloud.JCMessageChannel.markRecvMessage </td>
          <td>(</td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>messageId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>标志消息为已收</p>
<p>结果通过 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#a4e425cec73e2c7c3fc6a354d395c6e42">onMarkRecvResult</a> 通知</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID，如果-1表示最后一条消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a25e64a7e88b0e8eba3c87c4facce9ebd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25e64a7e88b0e8eba3c87c4facce9ebd">&#9670;&nbsp;</a></span>drawBackMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract int com.juphoon.cloud.JCMessageChannel.drawBackMessage </td>
          <td>(</td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>messageId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>撤回消息</p>
<p>结果通过 <a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_message_channel_callback.html#a390eb2972f808f89a2b37036d074258e">onDrawBackMessageResult</a> 通知</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID </td></tr>
    <tr><td class="paramname">text</td><td>文本内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ae25d6902e3670fbd60ccc61ee887439e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae25d6902e3670fbd60ccc61ee887439e">&#9670;&nbsp;</a></span>TYPE_1TO1</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.TYPE_1TO1 = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>一对一消息 </p>

</div>
</div>
<a id="a9aabb6c676cd2180ceb45353fbd1fdcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9aabb6c676cd2180ceb45353fbd1fdcb">&#9670;&nbsp;</a></span>TYPE_GROUP</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.TYPE_GROUP = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>群组消息 </p>

</div>
</div>
<a id="a4b0ae0c5836d1b460761c46932b07e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b0ae0c5836d1b460761c46932b07e3b">&#9670;&nbsp;</a></span>ITEM_STATE_INIT</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_INIT = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>消息初始状态 </p>

</div>
</div>
<a id="aa9b612713aa1c39a4a4c5c3e70ebbcfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9b612713aa1c39a4a4c5c3e70ebbcfd">&#9670;&nbsp;</a></span>ITEM_STATE_TRANSFERING</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_TRANSFERING = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>消息传输中状态 </p>

</div>
</div>
<a id="a34a763a491fbe5cce659d449e40c5aa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34a763a491fbe5cce659d449e40c5aa2">&#9670;&nbsp;</a></span>ITEM_STATE_OK</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_OK = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>消息成功状态 </p>

</div>
</div>
<a id="a63d75429f85dd20a5ce6527245dc7b26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63d75429f85dd20a5ce6527245dc7b26">&#9670;&nbsp;</a></span>ITEM_STATE_FAIL</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_FAIL = 3</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>消息失败状态 </p>

</div>
</div>
<a id="a45bfdf3c0589ebaabe99be31703c0f0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45bfdf3c0589ebaabe99be31703c0f0b">&#9670;&nbsp;</a></span>ITEM_STATE_ARRIVED</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_ARRIVED = 5</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>收到消息 已送达 </p>

</div>
</div>
<a id="aae786148efddf3dc93346d5b7ac5d28d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae786148efddf3dc93346d5b7ac5d28d">&#9670;&nbsp;</a></span>ITEM_STATE_READED</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.ITEM_STATE_READED = 6</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>已读 </p>

</div>
</div>
<a id="acaf6c160c11a54944408a91df9fd2fbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaf6c160c11a54944408a91df9fd2fbd">&#9670;&nbsp;</a></span>DIRECTION_SEND</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.DIRECTION_SEND = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>发送 </p>

</div>
</div>
<a id="a82b6a700cee69a7ccb9b1d7ed82646e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82b6a700cee69a7ccb9b1d7ed82646e2">&#9670;&nbsp;</a></span>DIRECTION_RECEIVE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCMessageChannel.DIRECTION_RECEIVE = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>接收 </p>

</div>
</div>
<a id="adb23597d6d83cbee9e96d0f7796b7864"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb23597d6d83cbee9e96d0f7796b7864">&#9670;&nbsp;</a></span>thumbDir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMessageChannel.thumbDir</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>缩率图保存路径</p>
<p>初始化会默认设置，同时用户可以自己设置 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cloud/src/main/im/com/juphoon/cloud/JCMessageChannel.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
